package java_DesignPattern.CreatorPattern.FactoryPattern.Config_Factory;

/**
 * 配置文件+简单工厂测试类
 */
public class Test {

    public static void main(String[] args) {

        //创建工厂对象
        CoffeeFactory coffeeFactory = new CoffeeFactory();

        Coffe america = coffeeFactory.createCoffe("latte");

        System.out.println(america);
        System.out.println(america.getName());
    }
}
